package cn.tedu.antcolony.passport.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 修改密码类
 */
@Data
public class AdminUpdatePassword implements Serializable {
    @NotNull
    @ApiModelProperty(value = "管理员id",required = true,dataType = "long",example = "1")
    private Long id;

    @ApiModelProperty(value = "管理员新密码",required = true,dataType = "string",example = "123")
    @NotNull(message = "必须提交新密码!")
    @NotBlank(message = "必须提交新密码!")
    private String newPassword;

    @ApiModelProperty(value = "管理员确认密码",required = true,dataType = "string",example = "123")
    @NotNull(message = "必须提确认密码!")
    @NotBlank(message = "必须提交确认密码!")
    private String confirmPassword;
}
